package com.twu.biblioteca;

/**
 * Created by twer on 7/11/14.
 */
public class Option {
    private int id;
    private String name;
    private boolean isAvailable;

    public Option(int id, String name, boolean isAvailable) {
        this.id = id;
        this.name = name;
        this.isAvailable = isAvailable;
    }

    public String getDetails() {
        return String.format("%s:%s",id, name);
    }

    public boolean isAvailable() {
        return isAvailable;
    }

    public void setIsAvailable(boolean isAvailable) {
        this.isAvailable = isAvailable;
    }
}
